﻿@model canthovieclam.Models.PostModels
@using canthovieclam.Helper;
@{
    ViewBag.Title = "Post";
    Layout = "~/Views/Shared/_LayoutEmployer.cshtml";
}

<h1>Đăng tuyển dụng</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"> </script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"> </script>
@Html.CKEditorHeaderScripts()

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div class="data-entry">
        <h2>@Resources.Resource.Employer_Post_RecruitmentInformation</h2>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_JobTitle
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.JobTitle)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.JobTitle)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_JobDescription
            </div>
            <div class="editor-field col span_3_of_4">
                @*@Html.CKEditor("Body", (string)ViewBag.BodyText, "toolbar:'Basic'", new { cols = 20, rows = 5 })*@
                @Html.CKEditorFor(model => model.JobDescription, "toolbar:'Basic', uiColor:'#f5f9f0'")
                @*@Html.CKEditorFor(model => model.JobDescription, "uiColor:'#996611'")
                @Html.CKEditorFor(model => model.JobDescription)*@
                @*@Html.TextBoxFor(m => m.JobDescription)*@
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_JobCategory
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.SelectAllJobCategories(m => m.JobCatetoryId)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.JobCatetoryId)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_Location
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.SelectLocations(m => m.LocationId)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.LocationId)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_SalaryType
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.SalaryType)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.SalaryType)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_FromSalary
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.FromSalary)
            </div>
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_ToSalary
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.ToSalary)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_EmploymentLength
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.EmploymentLength)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.EmploymentLength)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_EmploymentType
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.EmploymentType)
            </div>
        </div>
        <h2>@Resources.Resource.Employer_Post_GeneralInformation</h2>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_General_Gender
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.RadioGenders(m => m.Gender)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.Gender)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_Age
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.FromAge)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.ToAge)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_Experience
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.Experience)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.FromYear)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.Experience)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_CareerLevel
            </div>
            <div class="editor-field col span_1_of_4">
                @*@Html.SelectJobLevels(m => m.CareerLevel)*@
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.CareerLevel)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4">
                @Resources.Resource.Employer_Post_Recruit_Qualification
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.TextBoxFor(m => m.Qualification)
            </div>
            <div class="editor-field col span_1_of_4">
                @Html.ValidationMessageFor(m => m.Qualification)
            </div>
        </div>
        <div class="section group">
            <div class="editor-label col span_1_of_4"></div>
            <div class="editor-field col span_1_of_4">
                <input type="submit" value="@Resources.Resource.Employer_Register_RegisterButton" />
            </div>
        </div>
    </div>
}